<template>
	<view>
		<view class="container" v-if="status">
			<view>
				<uni-icons type="checkmarkempty" size="200" style="color: #4CD964;"></uni-icons>
			</view>
			<view>
				<text>付款成功！</text>
			</view>
			<view>
				<text>恭喜你，获得5元外卖抵用券一张</text>
			</view>
			<view>
				<button type="primary" style="width: 500rpx;" @click="lookorder">查看订单</button>
			</view>
			<view>
				<button type="default" style="width: 500rpx;" @click="backindex">返回首页</button>
			</view>
		</view>
		<view class="container" v-else>
			<view>
				<uni-icons type="closeempty" size="200" style="color: #DD524D;"></uni-icons>
			</view>
			<view>
				<text>付款失败！</text>
			</view>
			<view>
				<text>恭喜你，获得5元外卖抵用券一张</text>
			</view>
			<view>
				<button type="primary" style="width: 500rpx;" @click="lookorder">查看订单</button>
			</view>
			<view>
				<button type="default" style="width: 500rpx;" @click="backindex" >返回首页</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				status:true
			}
		},
		methods: {
			lookorder(){
				
			},
			backindex(){
				uni.reLaunch({
					// url: "../index/index"
				})
			}
		}
	}
</script>

<style>
.container{
	text-align: center;
}
.container>view{
	margin-bottom: 20rpx;
}
</style>
